/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package cn.ac.iie.di.tools;

import cn.ac.iie.di.global.GlobalParas;
import java.text.SimpleDateFormat;
import java.util.Date;
import cn.ac.iie.di.ban.ycl.idgen.IDGeneratorInterface;
import cn.ac.iie.di.ban.ycl.idgen.IDSHAGeneratorImpl;
import com.hankcs.hanlp.HanLP;
import java.util.List;
import java.util.Random;

/**
 *
 * @author lenovo-pc
 */
public class TimeTransfer {

    public static String getNowTimeStamp() {
        long time = System.currentTimeMillis();
        String nowTimeStamp = String.valueOf(time / 1000);
        return nowTimeStamp;
    }

    public static Long getNewTimeStamp() {
        long time = System.currentTimeMillis();
        return time / 1000;
    }

    public static void main(String[] args) {
        String s = "[sss,xxx]";
        String[] ss = s.substring(1, s.length() - 1).split(",");
        System.err.println("");
    }
}
